/*
import java.util.Scanner;

*/
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2022-04-29
 * Time: 13:57
 *//*

public class FacN {
    static int FacN1(int N){
        if(N == 1){
            return 1;
        }else{
            return N*FacN1(N-1);
        }
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int i = sc.nextInt();
            System.out.println(FacN.FacN1(i));
        }
    }
}
*/
